package com.centersoft.flowable.core.dto;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 任务回退请求
 * @author wangzhiqiang
 * @since 2025/3/28 21:34
 */
@NoArgsConstructor
@Data
public class TaskBackDto extends TaskHandlerDto {


    public static TaskStopDto toSTopDto(TaskBackDto taskBackDto) {
        TaskStopDto taskStopDto = new TaskStopDto();
        taskStopDto.setTaskId(taskBackDto.getTaskId());
        taskStopDto.setAssignee(taskBackDto.getAssignee());
        taskStopDto.setCommentMessage(taskBackDto.getCommentMessage());
        taskStopDto.setCommentType(taskBackDto.getCommentType());
        taskStopDto.setMessage(taskBackDto.getMessage());
        return taskStopDto;
    }
}
